<?php


namespace App\Common;

/**
 * 常量定义类
 *
 * @package App\Common
 */
class Constant
{

    // 商户号定义
    const MERCHANTID = 'MERCHANTID';

    // 商品列表redis缓存key(和nft项目共用一个key)
    const GOODS_LIST = 'goods_list_';

    // 藏品赋能,频率限制redis缓存key
    const SPECIAL_PRIVILEGE_ACCESS = 'open_special_privilege_access_';

    // 藏品发放,频率限制redis缓存key
    const SPECIAL_SEND_ACCESS = 'open_special_send_access_';

    // 商户信息,redis缓存key
    const MERCHANTS_INFO = 'open_merchants_info_20231013_';

    // 商品通兑,频率限制redis缓存key
    const GOODS_EXCHANGE_ACCESS = 'open_goods_exchange_access_';

    // 商品转移,频率限制redis缓存key
    const GOODS_MOVE_ACCESS = 'open_goods_move_access_';

    // 铸造数量添加、撤销
    const MERCHANTS_CASTING_LIMIT = 'merchants_casting_limit_';

    // 商品ugc赋能绑定,频率限制redis缓存key
    const GOODS_UGC_BIND_ACCESS = 'open_goods_ugc_bind_access_';

    // 商品ugc赋能绑定,冻结的券
    const GOODS_UGC_BIND_FREEZE = 'open_goods_ugc_bind_freeze_';

    // 商品ugc转移,频率限制redis缓存key
    const GOODS_UGC_MOVE = 'open_goods_ugc_move_';

    // 平台信息,redis缓存key
    const PLATFORM_INFO = 'open_platform_info_';

    // 藏品库存redis key
    const SPECIAL_STOCK_REDIS_KEY = 'sepcial_goods_num';

    //  公用服务-不用传递接入商户号路由
    const COMMON_SERVICE_ROUTE = [
        'api/openapi/v1/assort/assortList',
        'api/openapi/v1/merchants/merchantInfoCreate',
        'api/openapi/v1/merchants/merchantInfoSave',
        'api/openapi/v1/merchants/getApplyForInfo',
        'api/openapi/v1/goods/ugcBind',
        'api/openapi/v1/goods/ugcUnbind',
        'api/openapi/v1/goods/ugcMove',
        'api/openapi/v1/member/ugcOrderList',
        'api/openapi/v1/user/login',
        'api/openapi/v1/user/registerAuthMember',
        'api/openapi/v1/image-type/list',
        'api/openapi/v1/image/list',
    ];

    // 藏品状态更新,记录藏品id的redis key
    const MODIFY_SPECIAL_CALLBACK = 'openapi_modify_special_callback';

    // 创作者入驻申请审核,记录id的redis key
    const CHECK_MERCHANTS_CALLBACK = 'openapi_check_merchants_callback';


}
